import request from '/@/utils/request';

export function userList() {
	return request({
		url: '/admin/user/page',
		method: 'get',
		params: {
      deptId: 1,
      current: 1,
      size: 9999
    }
	})
}

export function fetchList(query?: Object) {
	return request({
		url: '/admin/alarmTypeConf/page',
		method: 'get',
		params: query,
	});
}
export function fetchDictList(query?: Object) {
	return request({
		url: '/admin/dict/item/page',
		method: 'get',
		params: query,
	});
}

export const addObj = (obj: Object) => {
	return request({
		url: '/admin/alarmTypeConf',
		method: 'post',
		data: obj,
	});
};

export const putObj = (obj: Object) => {
	return request({
		url: '/admin/alarmTypeConf',
		method: 'put',
		data: obj,
	});
};

export function getObj(id?: string) {
	return request({
		url: '/admin/alarmTypeConf/' + id,
		method: 'get',
	});
}

export function delObjs(ids?: Object) {
	return request({
		url: '/admin/alarmTypeConf',
		method: 'delete',
		data: ids,
	});
}
